﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace EZCRS.HCMS.Entity
{
    #region HCRS_PARTNER
    /// <summary>
    /// 
    /// </summary>
    public class HCRS_PARTNER
   {
        private int? _id;
        private int? _PARTNER_ID;
        private string _PARTNER_URL;
        private string _PARTNER_TYPE;
        private string _PARTNER_INSTANCE;
        private string _MESSAGEPASSWORD;
        private string _COMPANY_CODE;
        private string _CREATE_USER_NAME;
        private DateTime? _CREATE_TIME;
        private string _LAST_USER_NAME;
        private string _LAST_UPDATE_TIME;



        public HCRS_PARTNER()
        {}


        public HCRS_PARTNER(DataRow dr)
        {
            if (dr != null)
            {
                if(dr["id"].ToString()!="")_id=Convert.ToInt32(dr["id"].ToString());
                if(dr["PARTNER_ID"].ToString()!="")_PARTNER_ID=Convert.ToInt32(dr["PARTNER_ID"].ToString());
                _PARTNER_URL=dr["PARTNER_URL"].ToString();
                _PARTNER_TYPE=dr["PARTNER_TYPE"].ToString();
                _PARTNER_INSTANCE=dr["PARTNER_INSTANCE"].ToString();
                _MESSAGEPASSWORD=dr["MESSAGEPASSWORD"].ToString();
                _COMPANY_CODE=dr["COMPANY_CODE"].ToString();
                _CREATE_USER_NAME=dr["CREATE_USER_NAME"].ToString();
                if(dr["CREATE_TIME"].ToString()!="")_CREATE_TIME=Convert.ToDateTime(dr["CREATE_TIME"].ToString());
                _LAST_USER_NAME=dr["LAST_USER_NAME"].ToString();
                _LAST_UPDATE_TIME=dr["LAST_UPDATE_TIME"].ToString();


            }
        }



        #region 公共属性 


         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("id", "pk")]
         public int? id
         {
             get { return _id; }
             set { _id = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("PARTNER_ID")]
         public int? PARTNER_ID
         {
             get { return _PARTNER_ID; }
             set { _PARTNER_ID = value; }
         }

         /// <summary>
         /// 地址
         /// </summary>
         [DataFieldAttribute("PARTNER_URL")]
         public string PARTNER_URL
         {
             get { return _PARTNER_URL; }
             set { _PARTNER_URL = value; }
         }

         /// <summary>
         /// 类型字典：UIT
         /// </summary>
         [DataFieldAttribute("PARTNER_TYPE")]
         public string PARTNER_TYPE
         {
             get { return _PARTNER_TYPE; }
             set { _PARTNER_TYPE = value; }
         }

         /// <summary>
         /// 实例
         /// </summary>
         [DataFieldAttribute("PARTNER_INSTANCE")]
         public string PARTNER_INSTANCE
         {
             get { return _PARTNER_INSTANCE; }
             set { _PARTNER_INSTANCE = value; }
         }

         /// <summary>
         /// 消息密码
         /// </summary>
         [DataFieldAttribute("MESSAGEPASSWORD")]
         public string MESSAGEPASSWORD
         {
             get { return _MESSAGEPASSWORD; }
             set { _MESSAGEPASSWORD = value; }
         }

         /// <summary>
         /// 公司标识 关联公司表
         /// </summary>
         [DataFieldAttribute("COMPANY_CODE")]
         public string COMPANY_CODE
         {
             get { return _COMPANY_CODE; }
             set { _COMPANY_CODE = value; }
         }

         /// <summary>
         /// 创建人
         /// </summary>
         [DataFieldAttribute("CREATE_USER_NAME")]
         public string CREATE_USER_NAME
         {
             get { return _CREATE_USER_NAME; }
             set { _CREATE_USER_NAME = value; }
         }

         /// <summary>
         /// 创建时间
         /// </summary>
         [DataFieldAttribute("CREATE_TIME")]
         public DateTime? CREATE_TIME
         {
             get { return _CREATE_TIME; }
             set { _CREATE_TIME = value; }
         }

         /// <summary>
         /// 修改人
         /// </summary>
         [DataFieldAttribute("LAST_USER_NAME")]
         public string LAST_USER_NAME
         {
             get { return _LAST_USER_NAME; }
             set { _LAST_USER_NAME = value; }
         }

         /// <summary>
         /// 修改时间
         /// </summary>
         [DataFieldAttribute("LAST_UPDATE_TIME")]
         public string LAST_UPDATE_TIME
         {
             get { return _LAST_UPDATE_TIME; }
             set { _LAST_UPDATE_TIME = value; }
         }



        #endregion


    }
    #endregion
}
